Package com.cisco.pt.ipc.sim.pdu.impl
Class BgpOpenImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.BgpPacketImpl
com.cisco.pt.ipc.sim.pdu.impl.BgpOpenImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Shortprotected Shortprotected Byteprotected intprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.BgpPacketImpl
length, typeFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getAS()getFieldType(String fieldName) intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidvoidsetHoldTime(Short holdTime) voidsetOptionalParamLength(Byte OptionalParamLength) voidsetSpeakerID(int speakerID) voidsetVersion(Byte version) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.BgpPacketImpl
getLength, getType, setLength, setTypeMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.BgpPacket
getLength, getType, setLength, setTypeMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
version
-
AS
-
holdTime
-
speakerID
protected int speakerID -
OptionalParamLength
-
-
Constructor Details
-
BgpOpenImpl
public BgpOpenImpl()
-
-
Method Details
-
getVersion
- Specified by:
getVersionin interfaceBgpOpen- Returns:
- Byte Returns a Byte
-
setVersion
- Specified by:
setVersionin interfaceBgpOpen- Parameters:
version- Takes in a parameter of version
-
getAS
-
setAS
-
getHoldTime
- Specified by:
getHoldTimein interfaceBgpOpen- Returns:
- Short Returns a Short
-
setHoldTime
- Specified by:
setHoldTimein interfaceBgpOpen- Parameters:
holdTime- Takes in a parameter of holdTime
-
getSpeakerID
public int getSpeakerID()- Specified by:
getSpeakerIDin interfaceBgpOpen- Returns:
- int Returns a int
-
setSpeakerID
public void setSpeakerID(int speakerID) - Specified by:
setSpeakerIDin interfaceBgpOpen- Parameters:
speakerID- Takes in a parameter of speakerID
-
getOptionalParamLength
- Specified by:
getOptionalParamLengthin interfaceBgpOpen- Returns:
- Byte Returns a Byte
-
setOptionalParamLength
- Specified by:
setOptionalParamLengthin interfaceBgpOpen- Parameters:
OptionalParamLength- Takes in a parameter of OptionalParamLength
-
getFieldType
- Overrides:
getFieldTypein classBgpPacketImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classBgpPacketImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classBgpPacketImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classBgpPacketImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classBgpPacketImpl
-